﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NovKader.aspx.cs" Inherits="Sio.Mdm.Web.Organizacija.NovKader" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>SIO - MDM :: Organizacija : Nov pedagoški kader</title>
  <style type="text/css">
    .fieldspace {	padding: 0 10px 10px 0;}
  </style>
</head>
<body>
<form id="form1" runat="server">
	<ext:ResourceManager ID="ResourceManager1" runat="server" />

	<ext:Store runat="server" ID="StoreDelovnaMesta">
    <Reader>
      <ext:JsonReader >
        <Fields>
            <ext:RecordField Name="DelovnoMestoId" Type="Int" />
            <ext:RecordField Name="Naziv" Type="String" />      
        </Fields>
      </ext:JsonReader>
    </Reader>
  </ext:Store>
	<ext:Store runat="server" ID="StoreNaziviUciteljev">
    <Reader>
      <ext:JsonReader >
        <Fields>
            <ext:RecordField Name="NazivUciteljaId" Type="Int" />
            <ext:RecordField Name="Naziv" Type="String" />      
        </Fields>
      </ext:JsonReader>
    </Reader>
  </ext:Store>
  <ext:Store ID="StorePoklici" runat="server">
			<Reader>
				<ext:JsonReader IDProperty="PoklicId">
					<Fields>
						<ext:RecordField Name="PoklicId" Type="Int" />
						<ext:RecordField Name="Naziv" Type="String" />
					</Fields>
				</ext:JsonReader>
			</Reader>
		</ext:Store>

	<ext:Viewport ID="Viewport1" runat="server" Layout="Fit">
		<Content>               
				<sio:FormPanel runat="server" ID="addKader" MonitorPoll="500" MonitorValid="true" >
					<Items>
						<ext:Panel ID="Panel1" runat="server" Border="true" Margins="5 5 0 5" Padding="10">
						<Items>
							<ext:Panel ID="panelOsebni" runat="server" Border="false" BodyStyle="background: none;">
							<Items>
							<ext:TableLayout ID="TableLayout1" runat="server" Columns="4" >
								<Cells >
										<ext:Cell CellCls="fieldspace">
														<ext:TextField ID="inputIme" runat="server" LabelAlign="Top" FieldLabel="Ime" AnchorHorizontal="95%"  
																		AllowBlank="false" MinLength="2" MinLengthText="Vpišite ime" BlankText="Vpišite ime" /></ext:Cell>
										<ext:Cell CellCls="fieldspace">
														<ext:TextField ID="inputPriimek" runat="server" LabelAlign="Top" FieldLabel="Priimek" AnchorHorizontal="95%" 
																		AllowBlank="false" MinLength="2" MinLengthText="Vpišite priimek" BlankText="Vpišite priimek" /></ext:Cell>
										<ext:Cell CellCls="fieldspace"><ext:NumberField ID="inputDs" runat="server" LabelAlign="Top" FieldLabel="Davčna številka" AnchorHorizontal="95%" Width=100
														AllowBlank="false"  MinLength="8" MaxLength="8" MinLengthText="Vpišite davčno številko" BlankText="Vpišite davčno številko" /></ext:Cell>
									<ext:Cell CellCls="fieldspace">
											<ext:ComboBox ID="cbSpol" SelectedIndex=0 FieldLabel="Spol" LabelAlign="Top" runat="server" Editable="false"	SelectOnFocus="true" Width=100 >
												<Items>
													<ext:ListItem Text="moški" Value="0" />
													<ext:ListItem Text="ženski" Value="1" />
												</Items>
											</ext:ComboBox>
									</ext:Cell>
               </Cells>                         
							</ext:TableLayout>
							</Items>
							</ext:Panel>
							<ext:Panel ID="panelStrokovni" runat="server" Border="false" BodyStyle="background: none;">
							<Items>
								<ext:TableLayout ID="TableLayout2" runat="server" Columns="3" >
								<Cells >
									<ext:Cell CellCls="fieldspace">
													<ext:ComboBox ID="cbDelovnaMesta" StoreID="StoreDelovnaMesta" DisplayField="Naziv"  ValueField="DelovnoMestoId"
																	FieldLabel="Delovno mesto" LabelAlign="Top" runat="server" Editable="false"     SelectOnFocus="true" >
													</ext:ComboBox>
									</ext:Cell>
									<ext:Cell CellCls="fieldspace">
													<ext:ComboBox ID="cbPoklic" StoreID="StorePoklici" DisplayField="Naziv"  ValueField="PoklicId"
																	FieldLabel="Poklic" LabelAlign="Top" runat="server" Editable="false"    SelectOnFocus="true"  />
									</ext:Cell>
									<ext:Cell CellCls="fieldspace">
													<ext:ComboBox ID="cbNaziviUciteljev" StoreID="StoreNaziviUciteljev" DisplayField="Naziv"  ValueField="NazivUciteljaId"
																	FieldLabel="Naziv učitelja" LabelAlign="Top" runat="server" Editable="false"    SelectOnFocus="true"  />
									</ext:Cell>

									</Cells>
                </ext:TableLayout>
              </Items></ext:Panel>
							</Items>
						</ext:Panel>      
					</Items>
        <Listeners>
				  <ClientValidation Handler="#{AddKaderProxy}.disableButton('Save', !valid);" />
			  </Listeners>
        </sio:FormPanel>
		</Content>
	</ext:Viewport>
	
  <sio:DialogProxy runat="server" ID="AddKaderProxy" WindowId="AddKader">
	<DirectEvents>
		<ButtonClicked OnEvent="AddKaderButton">
		</ButtonClicked>
	</DirectEvents>
	</sio:DialogProxy>
	
	</form>
</body>
</html>
